<?php
class Controller {
	public $model;
	
	public function view($view) {
		if(file_exists(dirname(__FILE__)."/view.class.php") && file_exists(CONFIG_APP . 'views/'. $view . '.view.php')) {
			require_once(dirname(__FILE__)."/view.class.php");
			include(CONFIG_APP . 'views/'. $view . '.view.php');
		}
	}
	
	public function assign($name, $value) {
		$_GET[$name] = $value;
	}
	
	public function post($name) {
		return $_POST[$name];
	}
	
}

?>